package com.tju.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tju.shortlink.project.dao.entity.LinkDo;
import com.tju.shortlink.project.dto.req.RecycleBinRemoveDTO;
import com.tju.shortlink.project.dto.req.RecycleBinSaveDTO;
import com.tju.shortlink.project.dto.req.ShortLinkRecycleBinPageReqDTO;
import com.tju.shortlink.project.dto.resp.ShortLinkPageRespDTO;

public interface IRecycleBinService extends IService<LinkDo> {

    /**
     * 保存回收站短连接
     * @param requestParam 短链接信息
     */
    void saveRecycleBin(RecycleBinSaveDTO requestParam) ;


    /**
     * 分页查询回收站短链接
     * @param requestParam 分页请求参数
     * @return
     */
    IPage<ShortLinkPageRespDTO> pageShortLink(ShortLinkRecycleBinPageReqDTO requestParam);

    /**
     * 恢复短链接
     * @param requestParam 短链接信息
     */
    void recoveryRecycleBin(RecycleBinSaveDTO requestParam);

    void removeRecycleBin(RecycleBinRemoveDTO requestParam);
}
